package hx.dto;

import java.io.Serializable;

/**
 * @author HX<titanrain@163.com>
 */
public class ReturnData implements Serializable {

    public boolean success = true;
    public int code;
    public String message = "success";
    public Object data;

    public ReturnData() {

    }

    public ReturnData(Object data) {
        this.data = data;
    }

    public ReturnData(boolean success, String message) {
        this.success = success;
        this.message = message;
    }

    public ReturnData(boolean success, String message, Object data) {
        this.success = success;
        this.message = message;
        this.data = data;
    }

    public ReturnData(boolean success, int code, String message, Object data) {
        this.success = success;
        this.message = message;
        this.data = data;
        this.code = code;
    }
}
